# -*- coding: utf-8 -*-

from werkzeug.local import LocalStack, LocalProxy
from flask import current_app


def _get_current_redis():
    return current_app.redis


def _get_current_config():
    return current_app.conf


_global_ctx_stack = LocalStack()
r = LocalProxy(_get_current_redis)
config = LocalProxy(_get_current_config)
